<?php 
	$LabelHtmlOption = array('style'=>'margin-top:0px;');
	$TextFieldHtmlOption = array('style'=>'font-size:16pt;');
	$SelectFieldHtmlOption = array('style'=>'font-size:14pt;width:277px');
?>
<div class="form">
<?php
	$form=$this->beginWidget('CActiveForm', array(
	'id'=>'Reference-form',
	'enableClientValidation'=>true,
	//'htmlOptions'=>array('enctype' => 'multipart/form-data'),
	'clientOptions'=>array(
	//	'enctype'=>'multipart/form-data',
		'validateOnSubmit'=>true,
	),
));
?>
<div class='box'>
	<div class='cap filter silver'>
	</div>
	<table class="form2c">
		<tr >
			<th ><?php echo $form->labelEx($model,'id',$LabelHtmlOption); ?></th>
			<td ><?php echo $form->textField($model,'id',$TextFieldHtmlOption); ?>
				 <?php echo $form->error($model,'id'); ?>
			</td>
		</tr>
		<tr >
			<th ><?php echo $form->labelEx($model,'album_id',$LabelHtmlOption); ?></th>
			<td ><?php echo $form->dropDownList($model,'album_id',Fish::getList('album','name'),$TextFieldHtmlOption); ?>
				 <?php echo $form->error($model,'album_id'); ?>
			</td>
		</tr>
		<tr >
			<th ><?php echo $form->labelEx($model,'name',$LabelHtmlOption); ?></th>
			<td ><?php echo $form->textField($model,'name',$TextFieldHtmlOption); ?>
				 <?php echo $form->error($model,'name'); ?>
			</td>
		</tr>
		<tr >
			<th ><?php echo $form->labelEx($model,'reference_type_id',$LabelHtmlOption); ?></th>
			<td ><?php echo $form->dropDownList($model,'reference_type_id',Yii::app()->params['flag']['referenceType'],$TextFieldHtmlOption); ?>
				 <?php echo $form->error($model,'reference_type_id'); ?>
			</td>
		</tr>
		<tr >
			<th ><?php echo $form->labelEx($model,'year',$LabelHtmlOption); ?></th>
			<td ><?php echo $form->textField($model,'year',$TextFieldHtmlOption); ?>
				 <?php echo $form->error($model,'year'); ?>
			</td>
		</tr>
		<tr >
			<th ><?php echo $form->labelEx($model,'price',$LabelHtmlOption); ?></th>
			<td ><?php echo $form->textField($model,'price',$TextFieldHtmlOption); ?>
				 <?php echo $form->error($model,'price'); ?>
			</td>
		</tr>
	</table>
	<div class='filter tail blue' style='text-align:right;'>
		<?php echo CHtml::tag('button',array('class'=>'bt3'),'Submit'); ?>
	</div>
<?php $this->endWidget(); ?>
</div>